\section{OCTEON-SDK的使用}

\subsection{安装SDK}
\begin{shellcmd}
rpm –i /media/cdrom/*.rpm
/media/cdrom/patch_1.7
\end{shellcmd}
如果SVN中已经安装了SDK,可通过如下命令安装到用户目录下
\begin{shellcmd}
svn checkout http://192.168.1.199/svn/OCTEON-SDK/branches/2012-03-27/
\end{shellcmd}

\subsection{设置环境变量}
执行env-setup脚本会设置环境变量:
\begin{shellcmd}
source env-setup OCTEON_CN58XX
\end{shellcmd}
上述命令需要每次开机时重新执行.如需自动执行,Cavium幻灯片上有如下说明:
Add the following 3 lines to your ~/.bash\_profile and log out/in:
\begin{shellcmd}
pushd /usr/local/Cavium_Networks/OCTEON-SDK
source env-setup OCTEON_CN38XX
popd
\end{shellcmd}


\subsection{查看SDK版本}
查看executive/cvmx-version.h文件内容即可。

